package com.chendx.model.goodsComment.pojo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by chendx on 2021/9/22.
 */
@Document("skucomment")
@Data
public class SkuComment implements Serializable{
    @Id
    private String _id; //原始id mongodb 自动生成
    private String c_id; //评论的唯一 id
    private Integer star; //星级 5星好评 2-4中评 1差评
    private String orderitemid;
    private String skuid;
    private String spuid;
    private String content; //内容
    private String headpic;
    private String userid;
    private String username;
    private String parentid; //父级评论id
    private Date publishdate; //发布时间
    private Integer thumbup; //点赞次数
    private String images; //评论图片
    private String orderid;


}
